#include "bomb.h"

bomb::bomb()
{
    for(int i=1;i<=4;i++){
        QString str=QString(":/res/enemy1_down%1.png").arg(i);
        m_pixArr.push_back(QPixmap(str));
    }
    m_X=0;
    m_Y=0;
    m_Free=true;
    m_index=0;
    m_Recorder=0;
}

void bomb::updateInfo()
{
    if(m_Free){
        return;
    }
    m_Recorder++;
    if(m_Recorder<20){
        return;
    }
    m_Recorder=0;
    m_index++;
    if(m_index>3){
        m_index=0;
        m_Free=true;
    }
}
